function [ varargout] = combine_divid_xy(varargin)
% function [ output_args ] = Untitled2( input_args )
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here
 if(length(varargin)==2)
    x   =   varargin{1};    
    y  =    varargin{2};
    num = size(x,2);
    cb      =   [x y];
    ind    =   [1:num; num+1:2*num];
    cb     =   cb(:,ind(:)); 
    varargout{1} = cb;
 elseif (length(varargin) == 1)
     cb = varargin{1};
     x =    cb(:, 1:2:end);
     y =    cb(:, 2:2:end);
     varargout{1}   =   x;
     varargout{2}   =   y;
 end


